package tpf.designer.pattern.course6.behavior_pattern1.homework.exercise3;

abstract public class MessageHandler {
    protected MessageHandler successor;

    public abstract void handlerMessage(Message message);

    public MessageHandler getSuccessor() {
        return successor;
    }

    public void setSuccessor(MessageHandler successor) {
        this.successor = successor;
    }
}
